# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=udev-init-scripts
pkgver=33
pkgrel=1
pkgdesc="udev startup scripts for openrc"
url="https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-fs/udev-init-scripts"
arch="noarch"
options="!check"
license="GPL-2.0-only"
replaces="udev"
subpackages="$pkgname-openrc"
install="$pkgname.post-install $pkgname.post-upgrade"
source="https://gitweb.gentoo.org/proj/udev-gentoo-scripts.git/snapshot/udev-gentoo-scripts-$pkgver.tar.gz
	0001-init.d-style-fixes.patch
	0002-udev-settle-fix-timeout-argument-quoting.patch
	0003-udev-settle-do-not-require-udev.patch
	modloop.patch
	"
builddir="$srcdir/udev-gentoo-scripts-$pkgver"

build() {
	cd "$builddir"
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="2119aace937da02f47a5adc9af720587d25c2852cf70a9bcb04138e3ee511308c8f30cf0301fbec58cf0432b7fd6672ae6a02d1740c774703959197b3511fbcc  udev-gentoo-scripts-33.tar.gz
72cd3774e27020551f701a74e89d3d32cd378f48f9a602db7fa464b57f44d33769b30c050fb105e0131fc3af3550c8e558d368887b1e1bffa0944ffe476c1aa4  0001-init.d-style-fixes.patch
e56af9a3450041f4db416ec4d666504e9e288b32a90fecc985d57801da1a024aa172b10e9558fe7910831012f35abc043e9eb56134481d10c5bcdefe832ed5c7  0002-udev-settle-fix-timeout-argument-quoting.patch
080b709eebe60e36c769fc3dec4ea7d851ab72eaa0f036de45113bcd48fc6909d1c37d052f1dcfc4ad7c380b991e5bd97c4efb694c78011b532bf1fff93274cc  0003-udev-settle-do-not-require-udev.patch
8ae5b7574bff461006f5f4034313e6e5f3a88d5bb00fbb850c169a4685abafcb592c82283418e2b9dc8a238b460fa1a153d992905b9b8edd1c0949f7c8dfc274  modloop.patch"
